import cloud from "@tbmp/mp-cloud-sdk";
cloud.init({
  // env: "online"
  // env: "pre"
   env: "test"
});
App({
  cloud,
  // globalData: {  itemId: "",  skuId: "", mixUserId:""  },
  onLaunch(options) {
    // 第一次打开
    // options.query == {number:1}
    console.info('App onLaunch');

    // const { query = {} } = options;
    // const { params = {} } = query;
    // const paramJson = JSON.parse(params);
    // this.globalData.itemId = paramJson.itemId;
    // this.globalData.skuId = paramJson.skuId;

  },
  onShow(options) {
    // 从后台被 scheme 重新打开
    // options.query == {number:1}
  },
});
